<div class="grant">
    <h4 class="clearfix">
            <em class="grant-text">
            <label for="checkbox">全选</label>
            <input type="checkbox" name="checkbox" id="all" onclick="selectAll(this)"/>
            </em>
            <em class="grant-text1">ID</em>
            <em class="grant-text3">车商联系人</em>
            <em class="grant-text3">联系人电话</em>
            <em class="grant-text2">公司名称</em>
            <em class="grant-text2">所属公司</em>
            <em class="grant-text4">操作</em>
    </h4>
    <ul>
        <volist name="list" id="list">
            <li class="clearfix">
                <em class="grant-text"><input type="checkbox" name="checkbox" value="{$list.dealer_id}"/></em>
                <em class="grant-text1">{$list.dealer_id}</em>
                <em class="grant-text3">{$list.contact_person}</em>
                <em class="grant-text3">{$list.contact_mobile}</em>
                <em class="grant-text2">{$list.fullname}</em>
                <em class="grant-text2">{$list.branch_company}</em>
                <em class="grant-text4">
                    <a class="fang" dealer_id="{$list.dealer_id}">发放</a>
                    <a href="/Coupon/detail/dealer_id/{$list.dealer_id}" target="_blank">查看</a>
                </em>
            </li>
        </volist>
    </ul>
    <div class="piliang"><input type="button" value="批量发放"/></div>
</div>
<div class="pageFaye"><div class="pager">{$page}</div><div class="clear"></div></div>
<script>
    $('.fang').on('click',function(){
            $('.tanShang6').show();
            var dealer_id = $(this).attr('dealer_id');
            $(".yunBei").css("display","block");
            $('input[name=dealer_id]').val(dealer_id);
    })
</script>
